﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/Setting.Master" AutoEventWireup="true" CodeBehind="AdAdd.aspx.cs" Inherits="WebSite.UserAd.AdAdd" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<title>友赢网 - 个人中心 - 添加广告</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<script language="javascript" type="text/javascript" src="../js/ad.js"></script>
<div class="w-780">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <h2>添加新广告</h2>
    <p class="t1"><font color="red">提示：如果广告只是展示，链接地址不用修改。广告图片和广告文字填写一项即可。</font></p>
    <ul class="formSet mt5">
        
        <li><span class="l">所在广告位：</span>
        <div class="r">
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
             <asp:DropDownList ID="ddlAdPosition" runat="server" 
                 onselectedindexchanged="ddlAdPosition_SelectedIndexChanged" 
                 AutoPostBack="True">
             <asp:ListItem Text="-请选择-" Value="-1"></asp:ListItem>
             </asp:DropDownList>
             <asp:Label ID="lblRemark" runat="server" ForeColor="Blue"></asp:Label>
             </ContentTemplate>
        </asp:UpdatePanel>
            </div>
            </li>
         
         <li><span class="l">广告名称：</span><div class="r">
             <asp:TextBox ID="txtAdName" runat="server" class="text1" Width="400px"></asp:TextBox></div></li>
             <li><span class="l">广告类型：</span><div class="r">
             <asp:RadioButton ID="rbImage" runat="server" Text="图片" GroupName="adType" 
                     Checked="true" oncheckedchanged="rbImage_CheckedChanged" 
                     AutoPostBack="True"/>
                 <asp:RadioButton ID="rbScript" runat="server" Text="文字" GroupName="adType" 
                     oncheckedchanged="rbScript_CheckedChanged" AutoPostBack="True"/>
             </div></li>
             <li runat="server" id="liimage"><span class="l">广告图片：</span><div class="r">
                 <asp:FileUpload ID="fuImage" runat="server" Height="22px" Width="250px"/><font color="red">(图片格式为：.jpg,.gif,.png)</font>
             </div></li>
             <li runat="server" id="liscript" visible="false"><span class="l">广告文字：</span><div class="r">
                 <fckeditorv2:fckeditor id="txtScript" formatsource="true" fullpage="true" basepath="../js/FCKeditor/" runat="server" height="200px" toolbarset="Basic" width="100%"></fckeditorv2:fckeditor>
             </div></li>
             <li><span class="l">链接地址：</span><div class="r">
                 <asp:TextBox ID="txtLinkURL" runat="server" class="text1" Width="572px" Text="http://"></asp:TextBox>
             </div></li>
         <li><span class="l">&nbsp;</span><div class="r">
         <asp:Button ID="btnSubmit" runat="server" Text="提 交" 
                 style="background-color:#70A52F;width:75px; margin-right:13px; height:25px; float:left;border:0; cursor:pointer; color:White" 
                 onclick="btnSubmit_Click" OnClientClick="return Add()"/>
             </div></li>
        </ul>
 
  </div>
</asp:Content>
